#include<bits/stdc++.h>

using namespace std;

void f(int a, int b, int &c, int &d) {
    c = a + b;
    d = a * b;
}

int main() {

    int a = 3, b = 4;
    int c, d;
    //c=add(a,b);
//	d=mul(a,b);
    f(a, b, c, d);
    cout << c << " " << d << endl;


    return 0;
}
